-- GENERATED SPELL FOR [Un'Goro Stomper] --


function spell0_6513(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_6513', 685, 1)
end

function Sorts_6513(pUnit, Event)
local choix_sorts_6513 = math.random(0, 0)
if choix_sorts_6513 == 0 then
pUnit:RegisterEvent('spell0_6513', 1, 1)
end
end

function mob6513_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6513', math.random(1500, 3000), 1)
end

function mob6513_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6513_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6513_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6513, 1, 'mob6513_Action')
RegisterUnitEvent(6513, 2, 'mob6513_Leave')
RegisterUnitEvent(6513, 3, 'mob6513_Kill')
RegisterUnitEvent(6513, 4, 'mob6513_Die')
